Inheritance diagram for TMCException:

Public Member Functions | |
| TMCException (const MCErr error=kNoErr, const char *file=0, const int line=0) | |
| TMCException (const MCErr error, TMCString *errorString, const char *file=0, const int line=0) | |
| TMCException (const TMCException &e) | |
| ~TMCException (void) | |
| const TMCException & | operator= (const TMCException &e) |
| operator MCErr (void) const | |
| MCErr | GetError (void) const |
| void | SetError (const MCErr err) |
| const TMCString * | GetErrorString () const |
| virtual const char * | what () const |
Public Attributes | |
| MCErr | fError |
| const char * | fFile |
| int | fLine |
| TMCString * | fErrorString |
For more information please refer to the "Failure Handling" chapter in the overview of the SDK
|
||||||||||||||||
|
constructor: the standard errors can be found in MCStatusCode.h you can create your own errors: it is best to use MAKE_MCCOMErr with ExtensionModule for that purpose.
|
|
||||||||||||||||||||
|
error and error string constructor The exception will OWN the given string |
|
|
We do not want to allocate a new string in the new exception =>copies the e.fErrorString pointer into this.fErrorString and sets e.fErrorString to null. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5